﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Dynamic.Core;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;
using WMS.BasicData.Clients;
using WMS.BasicData.ProductDetails.DTO;


namespace WMS.BasicData.ProductDetails
{
    public interface IProductDetailsService:IApplicationService
    {
        /// <summary>
        /// 分页查询商品明细
        /// </summary>
        /// <param name="page"></param>
        /// <param name="limit"></param>
        /// <param name="belongsOwner"></param>
        /// <param name="productName"></param>
        /// <returns></returns>
        Task<PagedResult>ShowProductDetails(int page, int limit, int belongsOwner,string? productName);

        /// <summary>
        /// 创建商品明细
        /// </summary>
        /// <param name="createProductDetailsDto"></param>
        /// <returns></returns>
        Task<int>CreatePrdouctDetails(ProductDetail createProductDetailsDto);

        /// <summary>
        /// 删除商品明细
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int>DeleteProductDetails(int id);

        /// <summary>
        /// 查看商品明细
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<CUProductDetailsDto> GetProductDetails(int id);

        /// <summary>
        /// 更新商品明细
        /// </summary>
        /// <param name="id"></param>
        /// <param name="updateProductDetailsDto"></param>
        /// <returns></returns>
        Task<int> UpdateProductDetails(CUProductDetailsDto updateProductDetailsDto);


        //绑定客户名称
        Task<List<Client>> BindClientName();


        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="array">数组</param>
        /// <returns>返回受影响行数</returns>
        Task<int> BulkDeleteProductDetails(string array);


    }
}
